// Tabs = 4
//************************************************************
//	COPYRIGHT 2011 Bread Zeppelin - ALL RIGHTS RESERVED
//
// This file is the product of Bread Zeppelin and cannot be 
// reproduced, copied, or used in any shape or form without 
// the express written consent of Bread Zeppelin.
//************************************************************
//
//	$ID: Concurrent_Assg6
//
//	$Date: Feb 13, 2012
//
//	Reason:
//
//*************************************************************

/** $Author: Ben Hare, Zach Huenink, Philipp Wittmaack, Peter Maresca */
/** $Revision: 1 */

// Default Package

/**
 * Class representing the table objects of our Simulation
 */
public class Table {

	//Attributes
	private boolean isOccupied;
	private boolean isClean;
	final private int tableSize;
	private Order order;
	

	/**
	 * Constructor for Table 
	 * @param seatNumber - Number of people a table can seat
	 */
	Table(int tableSize) {
		this.isOccupied = false;
		this.isClean = true;
		this.tableSize = tableSize;
	}
	
	/**
	 * Returns if the table is currently occupied
	 * @return returns a boolean value
	 */
	public boolean getOccupied() {
		return isOccupied;
	}
	
	/**
	 * Sets the tables state as true(Occupied) or false
	 * @param isOccupied boolean value 
	 */
	public void setOccupied(boolean isOccupied) {
		this.isOccupied = isOccupied;
	}
	
	/**
	 * Returns whether the table is clean or not
	 * @return - the current boolean value of attribute isClean
	 */
	public boolean getClean() {
		return isClean;
	}
	
	/**
	 * Sets boolean value for attribute isClean
	 * @param isClean - boolean value 
	 */
	public void setClean(boolean isClean) {
		this.isClean = isClean;
	}

	
	/**
	 * @return - the number of customers a table can seat
	 */
	public int getTableSize() {
		return tableSize;

	}

	public void dropOffFood(Order custOrder) {
		setOrder(custOrder);
		
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public Order getOrder() {
		return order;
	}

}
